package com.victor.entity.city;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 城市介绍评论表
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "c_cityintroduce_comment")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CityIntroduceComment {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "cc_id", unique = true, nullable = false, length = 11)
	private Integer cc_id;// 编号,

	@Column(name = "c_id", length = 50)
	private String c_id;// 城市id

	@Column(name = "userid", length = 50)
	private String userid;// 评论人id

	@Column(name = "cc_content", length = 50)
	private String cc_content;// 评论内容

	@Column(name = "cc_time", length = 50)
	private String cc_time;// 评论时间

	@Transient
	private int praisenumber;// 点赞数

	@Transient
	private int commentnumber;// 评论数

	@Transient
	private String ifpraise;// 登录人是否点赞该回复(0.未点赞,1.已点赞)

	@Transient
	private List<CityIntroduceCommentPhoto> cityIntroduceCommentPhotos;// 评论多张图片

	@Transient
	private List<CityIntroduceCommentReply> cityIntroduceCommentReplys;//城市介绍评论回复

}
